#include<iostream>
#include<cmath>
using namespace std;

int power(int a,int b=2)
{
	return pow(a,b);
}
int main()
{
	int a,b;
	cout<<"输入参数a:底，b为幂"<<endl;
	cin>>a>>b;
	cout<<"求平方:"<<power(a)<<endl;
	cout<<"求三次方:"<<power(a,b)<<endl;
}
